import request from '@/utils/request'



export function qmsbasecameraipbyid(id) {
    return request({
        url: `/api/system/qmsbasecameraip/${id}`,
        method: 'GET',
    })
}

// 获取相机Ip
export function qmsbasecameraip(data) {
    return request({
        url: `/api/system/qmsbasecameraip`,
        method: 'GET',
        data
    })
}
// 修改相机Ip
export function updateqmsbasecameraip(data) {
    return request({
        url: `/api/system/qmsbasecameraip/${data.id}`,
        method: 'PUT',
        data
    })
}
// 新增相机Ip
export function addqmsbasecameraip(data) {
    return request({
        url: '/api/system/qmsbasecameraip',
        method: 'POST',
        data
    })
}

// 删除相机Ip
export function deleteqmsbasecameraip(id) {
    return request({
        url: `/api/system/qmsbasecameraip/${id}`,
        method: 'DELETE'
    })
}

// 批量删除相机Ip
export function deleteqmsbasecameraips(ids) {
    return request({
        url: `/api/system/qmsbasecameraip/batchRemove`,
        method: 'POST',
        data:ids
    })
}


//导出相机Ip
export function Export(data)
{
    return request({
        url: `/api/system/qmsbasecameraip/Actions/Export`,
        method: 'GET',
        data
    });
}


//获取产线ip数据
export function qmsbasecameralineipbyid(id) {
    return request({
        url: `/api/system/qmsbasecameralineip/${id}`,
        method: 'GET',
    })
}
// 获取产线ip数据
export function qmsbasecameralineip(data) {
    return request({
        url: `/api/system/qmsbasecameralineip`,
        method: 'GET',
        data
    })
}
// 修改产线ip数据
export function updateqmsbasecameralineip(data) {
    return request({
        url: `/api/system/qmsbasecameralineip/${data.id}`,
        method: 'PUT',
        data
    })
}
// 新增产线ip数据
export function addqmsbasecameralineip(data) {
    return request({
        url: '/api/system/qmsbasecameralineip',
        method: 'POST',
        data
    })
}

// 删除产线ip数据
export function deleteqmsbasecameralineip(id) {
    return request({
        url: `/api/system/qmsbasecameralineip/${id}`,
        method: 'DELETE'
    })
}

// 批量删除产线ip数据
export function deleteqmsbasecameralineips(ids) {
    return request({
        url: `/api/system/qmsbasecameralineip/batchRemove`,
        method: 'POST',
        data:ids
    })
}


//导出产线ip数据
export function Exportqmsbasecameralineip(data)
{
    return request({
        url: `/api/system/qmsbasecameralineip/Actions/Export`,
        method: 'GET',
        data
    });
}


//获取工位产线
export function qmsbasecameralinebyid(id) {
    return request({
        url: `/api/system/qmsbasecameraline/${id}`,
        method: 'GET',
    })
}
// 获取工位产线
export function qmsbasecameraline(data) {
    return request({
        url: `/api/system/qmsbasecameraline`,
        method: 'GET',
        data
    })
}
// 修改工位产线
export function updateqmsbasecameraline(data) {
    return request({
        url: `/api/system/qmsbasecameraline/${data.id}`,
        method: 'PUT',
        data
    })
}
// 新增工位产线
export function addqmsbasecameraline(data) {
    return request({
        url: '/api/system/qmsbasecameraline',
        method: 'POST',
        data
    })
}

// 删除工位产线
export function deleteqmsbasecameraline(id) {
    return request({
        url: `/api/system/qmsbasecameraline/${id}`,
        method: 'DELETE'
    })
}

// 批量删除工位产线
export function deleteqmsbasecameralines(ids) {
    return request({
        url: `/api/system/qmsbasecameraline/batchRemove`,
        method: 'POST',
        data:ids
    })
}
//导出工位产线
export function Exportqmsbasecameraline(data)
{
    return request({
        url: `/api/system/qmsbasecameraline/Actions/Export`,
        method: 'GET',
        data
    });
}




//获取摄像记录
export function qmsbusicameraorderbyid(id) {
    return request({
        url: `/api/system/qmsbusicameraorder/${id}`,
        method: 'GET',
    })
}
// 获取摄像记录
export function qmsbusicameraorder(data) {
    return request({
        url: `/api/system/qmsbusicameraorder`,
        method: 'GET',
        data
    })
}
// 修改摄像记录
export function updateqmsbusicameraorder(data) {
    return request({
        url: `/api/system/qmsbusicameraorder/${data.id}`,
        method: 'PUT',
        data
    })
}
// 新增摄像记录
export function addqmsbusicameraorder(data) {
    return request({
        url: '/api/system/qmsbusicameraorder',
        method: 'POST',
        data
    })
}

// 删除摄像记录
export function deleteqmsbusicameraorder(id) {
    return request({
        url: `/api/system/qmsbusicameraorder/${id}`,
        method: 'DELETE'
    })
}

// 批量删除摄像记录
export function deleteqmsbusicameraorders(ids) {
    return request({
        url: `/api/system/qmsbusicameraorder/batchRemove`,
        method: 'POST',
        data:ids
    })
}
//导出摄像记录
export function Exportqmsbusicameraorder(data)
{
    return request({
        url: `/api/system/qmsbusicameraorder/Actions/Export`,
        method: 'GET',
        data
    });
}

//调用OA
export function SubmitOA(data) {
    return request({
        url: `/api/system/qmsbusicustomermeasure/SubmitOA`,
        method: 'POST',
        data:data
    })
}

//发送邮件并调用OA
export function SubmitMeasure(data) {
    return request({
        url: `/api/system/qmsbusicustomermeasure/SubmitMeasure`,
        method: 'POST',
        data:data
    })
}



export default {
    qmsbasecameraipbyid,
    qmsbasecameraip,
    updateqmsbasecameraip,
    addqmsbasecameraip,
    deleteqmsbasecameraip,
    deleteqmsbasecameraips,
    Export,
    qmsbasecameralineipbyid,
    qmsbasecameralineip,
    updateqmsbasecameralineip,
    addqmsbasecameralineip,
    deleteqmsbasecameralineip,
    deleteqmsbasecameralineips,
    Exportqmsbasecameralineip,
    qmsbasecameralinebyid,
    qmsbasecameraline,
    updateqmsbasecameraline,
    addqmsbasecameraline,
    deleteqmsbasecameraline,
    deleteqmsbasecameralines,
    Exportqmsbasecameraline,
    qmsbusicameraorderbyid,
    qmsbusicameraorder,
    updateqmsbusicameraorder,
    addqmsbusicameraorder,
    deleteqmsbusicameraorder,
    deleteqmsbusicameraorders,
    Exportqmsbusicameraorder,
    SubmitOA,
    SubmitMeasure









};